package com.example.demo.sevice;

import com.example.demo.controller.data.ReturnData;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * 上传文件的服务类
 */
public interface UploadService {
    ReturnData uploadAvater(int id, MultipartFile file) throws IOException;

    ReturnData uploadFile(int type, MultipartFile file) throws IOException;
}
